package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExamStudentMapper;
import com.ruoyi.system.domain.ExamStudent;
import com.ruoyi.system.service.IExamStudentService;
import com.ruoyi.common.core.text.Convert;

/**
 * 学生Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-30
 */
@Service
public class ExamStudentServiceImpl implements IExamStudentService 
{
    @Autowired
    private ExamStudentMapper examStudentMapper;

    /**
     * 查询学生
     * 
     * @param id 学生主键
     * @return 学生
     */
    @Override
    public ExamStudent selectExamStudentById(Long id)
    {
        return examStudentMapper.selectExamStudentById(id);
    }

    /**
     * 查询学生列表
     * 
     * @param examStudent 学生
     * @return 学生
     */
    @Override
    public List<ExamStudent> selectExamStudentList(ExamStudent examStudent)
    {
        return examStudentMapper.selectExamStudentList(examStudent);
    }

    /**
     * 新增学生
     * 
     * @param examStudent 学生
     * @return 结果
     */
    @Override
    public int insertExamStudent(ExamStudent examStudent)
    {
        return examStudentMapper.insertExamStudent(examStudent);
    }

    /**
     * 修改学生
     * 
     * @param examStudent 学生
     * @return 结果
     */
    @Override
    public int updateExamStudent(ExamStudent examStudent)
    {
        return examStudentMapper.updateExamStudent(examStudent);
    }

    /**
     * 批量删除学生
     * 
     * @param ids 需要删除的学生主键
     * @return 结果
     */
    @Override
    public int deleteExamStudentByIds(String ids)
    {
        return examStudentMapper.deleteExamStudentByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除学生信息
     * 
     * @param id 学生主键
     * @return 结果
     */
    @Override
    public int deleteExamStudentById(Long id)
    {
        return examStudentMapper.deleteExamStudentById(id);
    }
}
